Skip to content

Conversation

@SergeyKozhukhov
Copy link

No description provided.

companion object {

/** Получить [applicationComponent] на основе [context] */
fun appComponent(context: Context) =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не понял зачем тут в параметрах контекст, у тебя же во монолит, доступ к App есть везде, просто можно геттер на ApplicationComponent написать


/** `Application` контекст */
@get:ApplicationContext
val appContext: Context
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А почему проперти а не метод?)

val activityContext: Context

/** Генератор цветов */
val colorGenerator: ColorGenerator
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А этот класс нужен в MainActivityComponent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants